﻿@model List<Super.Entities.Administrator>
@{
    ViewBag.Title = "管理员管理";
    Layout = null;
}
<div class="pageHeader">
    <form id="pagerForm" rel="pagerForm" onsubmit="return navTabSearch(this);" action="/admin/admin/index" method="post">
    <div class="searchBar">
        <ul class="searchContent">
            <li>
                @Html.DWZTextBox("keyword", "关键词【用户名、电话、UID、简码】：")
            </li>
        </ul>
        @Html.SubBar()
    </div>
    <input type="hidden" name="pageNum" value="1" /><!--【必须】value=1可以写死-->
    </form>
</div>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
            <li><a class="add" href="/admin/admin/edit" target="dialog" mask="true" ><span>添加</span></a></li>
            <li><a class="delete" href="/admin/admin/delete?id={sid_user}" target="ajaxTodo" title="确定要删除吗？" warn="请选择一个用户"><span>删除</span></a></li>
            <li><a class="edit" href="/admin/admin/edit?id={sid_user}" target="dialog" mask="true"  warn="请选择一个用户"><span>修改</span></a></li>
        </ul>
    </div>
    <div layouth="116" id="w_list_print">
        <table class="list" width="98%" targettype="navTab" asc="asc" desc="desc">
            <thead>
                <tr>
                    <th width="80">登录名</th>
                    <th width="50">登录次数</th>
                    <th width="100">最后登录时间</th>
                    <th width="100">是否是超管</th>
                    
                </tr>
            </thead>
            <tbody>
                @foreach (var item in Model)
                {
                    <tr target="sid_user" rel="@item.ID">
                        <td>@item.UserName</td>
                        <td>@item.LoginCount</td>
                        <td>@item.LastLoginTime</td>
                        <td>   @if (item.IsSuperAdmin)
                            {
                                <span>超级管理员</span>
                            }
                            else
                            {
                                <span>普通管理员</span>
  
                            }
                            </td>
                        
                    </tr>
                }
            </tbody>
        </table>
    </div>
    <div class="panelBar">
        <div class="pages">
            <span>共 @ViewBag.RecordCount 条</span>
        </div>
        <div class="pagination" targettype="navTab" totalcount="@ViewBag.RecordCount" numperpage="@ViewBag.PageSize" pagenumshown="10" currentpage="@ViewBag.PageIndex">
        </div>
    </div>
</div>

